<!DOCTYPE html>
<html lang="zh-CN">
    {% load static %}
  <head>
    <meta charset="utf-8">
<!--    <meta http-equiv="X-UA-Compatible" content="IE=edge"> -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="Keywords" content="{{ movie.keyword }}"/>
    <meta name="description" content="{{ movie.keyword }}">
      <!-- <link rel="icon" href="">-->

    <title>{% block title %}{% endblock %}</title>
    <!-- Bootstrap core CSS -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <link href='{% static "assets/css/blog.css" %}' rel="stylesheet" rev="stylesheet" type="text/css" media="all" >
    <link href='{% static "assets/css/movie.css" %}' rel="stylesheet" rev="stylesheet" type="text/css" media="all" >
    <link href='{% static "assets/css/cat.css" %}' rel="stylesheet" rev="stylesheet" type="text/css" media="all" >
    <link rel="stylesheet" rev="stylesheet" type="text/css" media="all" href='{% static "assets/bootadd.css" %}'>

    <script src='{% static "assets/md5.js" %}'></script>
    <script src='{% static "assets/jsExtend.js" %}'></script>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

  </head>

  <body>

    <div class="container" style="padding-top:15px;padding-bottom:15px;padding-right:0;">
        <div class="pull-left"><h1>爱奇果</h1><h3></h3></div>
        <div class="pull-right">
            <form class="navbar-form" accept-charset="utf-8" action="/search/1/" method="post" role="search">
                <input type='hidden' name='csrfmiddlewaretoken' value='NdGhbdy20Dq9hCBj9dptPwmqC7XGCj996IHuVhDnSX5jN6LiuMHzJobxF7GzvI99' />
                <div class="input-group">
                    <input type="text" class="form-control" name="wd" placeholder="搜索">
                    <span class="input-group-btn">
                        <button class="btn btn-default" type="submit">搜索</button>
                    </span>
                </div>
            </form>
        </div>
    </div>

    <div class="blog-masthead">
      <div class="container">
        <nav class="blog-nav">
          <a class="blog-nav-item" href="{% url 'index' %}">主页</a>
          {% for item in classifies %}
            <a class="blog-nav-item {% ifequal classify.0.classkey item.classkey %} active {% endifequal %}" href="{% url 'classsearch' item.classkey 1 %}">{{ item.classname }}</a>
          {% endfor %}
        </nav>
      </div>
    </div>

    <div class="container">
        {% block content %}{% endblock %}
    </div><!-- /.container -->

    <footer class="blog-footer">
      <p>Website built for <a href="#">Ds</a> by <a href="#">@杜神</a>.</p>
        <p>邮箱：981040863@qq.com</p>
      <p>
        <a href="#">返回顶部</a>
      </p>
        <div style="display: none"><script type="text/javascript" src='{% static "assets/count.js" %}'></script>
        </div>
    </footer>

    <div class="maincase" style="display:none">
        <div class="chat msgview" id="getmsg" style="visibility:hidden"></div>
        <div class="point msgview" style="margin-left:85px;visibility:hidden"></div>
        <div class="point msgview" style="margin-left:105px;height: 15px;width: 15px;visibility:hidden"></div>
        <div class="blob animated" onclick="greet()">
            <div class="eyes">
                <div class="eye left-eye"></div>
                <div class="eye right-eye"></div>
            </div>
            <div class="mouth"></div>
        </div>
        <div class="" style="margin-top:15px;margin-left:20px">
            <input type="text" placeholder="你想说啥" width="210px" id="sendmsg">
            <button onclick="send()" type="button" id="btn_send">Go!</button>
        </div><!-- /input-group -->
    </div>

    <script type="text/javascript" src='{% static "assets/js/cat.js" %}' ></script>
    <script type="text/javascript">
        $(document).ready(function(){
            var userAgent = window.navigator.userAgent;
            var isFirefox = false;
            var isChrome = false;
            var isEdge = false;
            var flag = "";
            var w=window.screen.width;
            var h=window.screen.height;
            //FireFox浏览器
            if (userAgent.indexOf('Firefox') != -1) {
                isFirefox = true;
                flag = 'firefox'
            }
            //Chrome浏览器
            if (userAgent.indexOf('Chrome') != -1 && userAgent.indexOf("Edge") < 0 && userAgent.indexOf("QQBrowser") < 0) {
                isChrome = true;
                flag = 'Chrome'
            }
            //Edge
            if (userAgent.indexOf('Edge') != -1) {
                isEdge = true;
                flag = 'Edge'
            }
            console.log(flag)
            console.log(w+'*'+h)
            if (isFirefox || isChrome || isEdge) {
                $(".maincase").css('display','block')
            }else{
                var path = window.location.pathname;
                var reg = /movie\/\d+\/\d+/i
                if(reg.test(path)){
                    console.log("暂不兼容此浏览器，可能造成播放失败.\n推荐使用谷歌、火狐、edge浏览器！")
                    //alert("暂不兼容此浏览器，可能造成播放失败.\n推荐使用谷歌、火狐、edge浏览器！")
                    //alert("暂不兼容此浏览器"+flag+",将跳转至视频原页去观看.\n推荐使用谷歌、火狐、edge浏览器！")
                    //window.open("{{ fileurl }}");
                }
            }
            //if (w<1000) {
                $(".maincase").css('display','none')
            //}
        });
    </script>
  </body>
</html>
